import Request from '@/app/utils/Request';
export const getEmailCode = (params:any) => {
    return Request.http({
        method:'POST',
        url:'/api/ux/send',
        params:params,
        formData:false,
        token:false,
    });
};

export const getSignUp= (params) => {
    return Request.http({
        method:'POST',
        url:'/api/ux/reg',
        params:params,
        formData:false,
        token:false,
    });
};

export const getLogin= (params) => {
    return Request.http({
        method:'POST',
        url:'/api/ux/login',
        params:params,
        formData:false,
        token:false,
    });
};

export const getUserInfo= (params) => {
  return Request.http({
      method:'GET',
      url:'/api/api/user/getInfo',
      params:params,
  });
};

export const getEditPwd= (params) => {
    return Request.http({
        method:'POST',
        url:'/api/ux/findPwd',
        params:params,
        formData:false,
        token:false,
    });
};

export const getwangjiPwdrenzheng= (params) => {
    return Request.http({
        method:'POST',
        url:'/api/ux/auth',
        params:params,
        formData:false,
        token:false,
    });
};

export const getEamilCode= (params) => {
    return Request.http({
        method:'POST',
        url:'/api/ux/sendLogin',
        params:params,
    });
};
